package api_test

import (
	"gitee.com/kristas/booting-go/framework"
	"gitee.com/kristas/booting-go/framework/core/statement/types"
	"gitee.com/kristas/booting-go/framework/web/rest"
)

func init() {
	framework.Component(new(TestBApi))
}

type TestBApi struct {
	types.Controller `group:"/test/b"`
	TestData         *TestData `wire:"test_data"`
	get              rest.GET  `url:"/get"`
}

func (a *TestBApi) Get() string {
	return a.TestData.Value
}
